package com.zodiac.alioth.common.api;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * Created by well on 2014/7/29.
 */
public class ApiRequest {

    private ApiRequestKey apiRequestKey;

    private Map<String,Object> requestParams;

    private Object[] resolvePrams;

    private String body;

    private Map<String, String> headers;

    private ApiHandler apiHandler;

    private transient HttpServletRequest httpServletRequest;

    private transient HttpServletResponse httpServletResponse;

    public HttpServletRequest getHttpServletRequest() {
        return httpServletRequest;
    }

    public void setHttpServletRequest(HttpServletRequest httpServletRequest) {
        this.httpServletRequest = httpServletRequest;
    }

    public HttpServletResponse getHttpServletResponse() {
        return httpServletResponse;
    }

    public void setHttpServletResponse(HttpServletResponse httpServletResponse) {
        this.httpServletResponse = httpServletResponse;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public Map<String, String> getHeaders() {
        return headers;
    }

    public void setHeaders(Map<String, String> headers) {
        this.headers = headers;
    }


    public ApiHandler getApiHandler() {
        return apiHandler;
    }

    public void setApiHandler(ApiHandler apiHandler) {
        this.apiHandler = apiHandler;
    }

    public ApiRequestKey getApiRequestKey() {
        return apiRequestKey;
    }

    public void setApiRequestKey(ApiRequestKey apiRequestKey) {
        this.apiRequestKey = apiRequestKey;
    }

    public Map<String, Object> getRequestParams() {
        return requestParams;
    }

    public void setRequestParams(Map<String, Object> requestParams) {
        this.requestParams = requestParams;
    }

    public Object[] getResolvePrams() {
        return resolvePrams;
    }

    public void setResolvePrams(Object[] resolvePrams) {
        this.resolvePrams = resolvePrams;
    }
}
